/*
 * Pantalla2.java
 *
 * Created on 9 de julio de 2008, 17:49
 */

package guipoker;

import java.awt.Color;
import java.util.ArrayList;
import java.util.Collections;
import poker.BarajaFrancesa;
import poker.Carta;
import poker.JugadorPoker;
import poker.SalidaEstandar;

/**
 *
 * @author  jga87y
 */
public class Pantalla2 extends javax.swing.JFrame {
    
    // IDIOMA
    String[]listaCartas;
    String langCalcular;
    String langCambiar;
    String langAleatorio;
    String langPartidas;
    String langJugadores;
    String langVictorias;
    String langJugador;
    String langParejas;
    String langEColor;
    String langDParejas;
    String langTrios;
    String langEscaleras;
    String langFull;
    String langPoker;
    String langColor;
    String langCartas;
    
    // INICIAL
    String[] listaFlop = {"0","0","0"};
    String[] listaTurn= {"0"};
    String[] listaRiver= {"0"};

    
    
            
    /** Creates new form Pantalla2 */
    public Pantalla2() {
        initComponents();
        
        // INICIALIZAR
        this.setForeground(Color.GREEN);
        
        spinner.setValue(1000);
        mostrar(2);
        this.toENG();
        listaFlop[0] = langAleatorio;
        listaFlop[1] = langAleatorio;
        listaFlop[2] = langAleatorio;
        listaTurn[0] = langAleatorio;
        listaRiver[0] = langAleatorio;
        
        jListaFlop.setListData(listaFlop);
        jListTurn.setListData(listaTurn);
        jListTurn.setListData(listaRiver);
       
        listaCartas = poker.BarajaFrancesa.listaCartasIngles;
        this.jListaCartas.setListData(listaCartas);
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    
    public void toENG(){
        langCalcular = "Calc";
        langCambiar = "Change";
        langAleatorio = "Random";
        langPartidas = "Games";
        langJugadores = "Players";
        langVictorias = "Wins";
        langJugador = "Player";
        langParejas = "Pairs";
        langEColor = "Color Flush";
        langDParejas = "Double Pairs";
        langTrios = "Trios";
        langEscaleras = "Strights";
        langFull = "Fulls";
        langPoker = "Pokers";
        langColor = "Flush";
        langCartas = "Cards";
        listaCartas = poker.BarajaFrancesa.listaCartasIngles;
        this.cambiarIdioma();
    }
    
    
    public void cambiarIdioma(){
         this.jListaCartas.setListData(listaCartas);
        this.botonCalcular.setText(langCalcular);
        this.jButton8.setText(langCambiar);
        this.jButton9.setText(langCambiar);
        this.jButton10.setText(langCambiar);
        this.jButton11.setText(langCambiar);
        this.jButton12.setText(langCambiar);
        listaFlop[0] = langAleatorio;
        listaFlop[1] = langAleatorio;
        listaFlop[2] = langAleatorio;
        listaTurn[0] = langAleatorio;
        listaRiver[0] = langAleatorio;
        jListaFlop.setListData(listaFlop);
        jListTurn.setListData(listaTurn);
        jListRiver.setListData(listaRiver);
        jPartidas.setText(langPartidas);
        jJugadores.setText(langJugadores);
        
        jJugador1.setText(langJugador + " 1");
        jJugador2.setText(langJugador + " 2");
        jJugador3.setText(langJugador + " 3");
        jJugador4.setText(langJugador + " 4");
        jJugador5.setText(langJugador + " 5");
        jJugador6.setText(langJugador + " 6");
        jJugador7.setText(langJugador + " 7");
        jJugador8.setText(langJugador + " 8");
        jJugador9.setText(langJugador + " 9");
        
        jCambiarA1.setText(langCambiar);
        jCambiarB1.setText(langCambiar);
        jLabelA1.setText(langAleatorio);
        jLabelB1.setText(langAleatorio);
        
        jCambiarA2.setText(langCambiar);
        jCambiarB2.setText(langCambiar);
        jLabelA2.setText(langAleatorio);
        jLabelB2.setText(langAleatorio);
       
        jCambiarA2.setText(langCambiar);
        jCambiarB2.setText(langCambiar);
        jLabelA2.setText(langAleatorio);
        jLabelB2.setText(langAleatorio);
        
        jCambiarA3.setText(langCambiar);
        jCambiarB3.setText(langCambiar);
        jLabelA3.setText(langAleatorio);
        jLabelB3.setText(langAleatorio);
       
        jCambiarA4.setText(langCambiar);
        jCambiarB4.setText(langCambiar);
        jLabelA4.setText(langAleatorio);
        jLabelB4.setText(langAleatorio);
       
        jCambiarA5.setText(langCambiar);
        jCambiarB5.setText(langCambiar);
        jLabelA5.setText(langAleatorio);
        jLabelB5.setText(langAleatorio);
       
        jCambiarA6.setText(langCambiar);
        jCambiarB6.setText(langCambiar);
        jLabelA6.setText(langAleatorio);
        jLabelB6.setText(langAleatorio);
       
        jCambiarA7.setText(langCambiar);
        jCambiarB7.setText(langCambiar);
        jLabelA7.setText(langAleatorio);
        jLabelB7.setText(langAleatorio);
       
        jCambiarA8.setText(langCambiar);
        jCambiarB8.setText(langCambiar);
        jLabelA8.setText(langAleatorio);
        jLabelB8.setText(langAleatorio);
       
        jCambiarA9.setText(langCambiar);
        jCambiarB9.setText(langCambiar);
        jLabelA9.setText(langAleatorio);
        jLabelB9.setText(langAleatorio);
       
    }
    public void toESP(){
        langCalcular = "Calcular";
        langCambiar = "Cambiar";
        langAleatorio = "Aleatorio";
        langPartidas = "Partidas";
        langJugadores = "Jugadores";
        langVictorias = "Victorias";
        langJugador = "Jugador";
        langParejas = "Parejas";
        langEColor = "Escalera de Color";
        langDParejas = "Dobles Parejas";
        langTrios = "Trios";
        langEscaleras = "Escaleras";
        langFull = "Fulls";
        langPoker = "Pokers";
        langColor = "Color";
        langCartas = "Cartas";
        listaCartas = poker.BarajaFrancesa.listaCartasSpanish;
        this.cambiarIdioma();
    }
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jButton1 = new javax.swing.JButton();
        buttonGroup1 = new javax.swing.ButtonGroup();
        jLabel1 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jPanelElegirCartas = new javax.swing.JPanel();
        botonCalcular = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jListaCartas = new javax.swing.JList();
        jPanel6 = new javax.swing.JPanel();
        jButton9 = new javax.swing.JButton();
        jButton8 = new javax.swing.JButton();
        jButton10 = new javax.swing.JButton();
        jScrollPane6 = new javax.swing.JScrollPane();
        jListaFlop = new javax.swing.JList();
        jButton11 = new javax.swing.JButton();
        jButton12 = new javax.swing.JButton();
        jScrollPane5 = new javax.swing.JScrollPane();
        jListTurn = new javax.swing.JList();
        jListRiver = new javax.swing.JList();
        jLabel30 = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        jLabel28 = new javax.swing.JLabel();
        comboJugadores = new javax.swing.JComboBox();
        jJugadores = new javax.swing.JLabel();
        spinner = new javax.swing.JSpinner();
        jPartidas = new javax.swing.JLabel();
        jPanel11 = new javax.swing.JPanel();
        bIdioma1 = new javax.swing.JToggleButton();
        bIdioma2 = new javax.swing.JToggleButton();
        caja1 = new javax.swing.JPanel();
        jJugador1 = new javax.swing.JLabel();
        jCambiarA1 = new javax.swing.JButton();
        jCambiarB1 = new javax.swing.JButton();
        jLabelA1 = new javax.swing.JTextField();
        jLabelB1 = new javax.swing.JTextField();
        caja2 = new javax.swing.JPanel();
        jJugador2 = new javax.swing.JLabel();
        jCambiarA2 = new javax.swing.JButton();
        jCambiarB2 = new javax.swing.JButton();
        jLabelA2 = new javax.swing.JTextField();
        jLabelB2 = new javax.swing.JTextField();
        caja3 = new javax.swing.JPanel();
        jJugador3 = new javax.swing.JLabel();
        jCambiarA3 = new javax.swing.JButton();
        jCambiarB3 = new javax.swing.JButton();
        jLabelA3 = new javax.swing.JTextField();
        jLabelB3 = new javax.swing.JTextField();
        caja4 = new javax.swing.JPanel();
        jJugador4 = new javax.swing.JLabel();
        jCambiarA4 = new javax.swing.JButton();
        jCambiarB4 = new javax.swing.JButton();
        jLabelA4 = new javax.swing.JTextField();
        jLabelB4 = new javax.swing.JTextField();
        caja5 = new javax.swing.JPanel();
        jJugador5 = new javax.swing.JLabel();
        jCambiarA5 = new javax.swing.JButton();
        jCambiarB5 = new javax.swing.JButton();
        jLabelA5 = new javax.swing.JTextField();
        jLabelB5 = new javax.swing.JTextField();
        caja6 = new javax.swing.JPanel();
        jJugador6 = new javax.swing.JLabel();
        jCambiarA6 = new javax.swing.JButton();
        jCambiarB6 = new javax.swing.JButton();
        jLabelA6 = new javax.swing.JTextField();
        jLabelB6 = new javax.swing.JTextField();
        caja7 = new javax.swing.JPanel();
        jJugador7 = new javax.swing.JLabel();
        jCambiarA7 = new javax.swing.JButton();
        jCambiarB7 = new javax.swing.JButton();
        jLabelA7 = new javax.swing.JTextField();
        jLabelB7 = new javax.swing.JTextField();
        caja8 = new javax.swing.JPanel();
        jJugador8 = new javax.swing.JLabel();
        jCambiarA8 = new javax.swing.JButton();
        jCambiarB8 = new javax.swing.JButton();
        jLabelA8 = new javax.swing.JTextField();
        jLabelB8 = new javax.swing.JTextField();
        caja9 = new javax.swing.JPanel();
        jJugador9 = new javax.swing.JLabel();
        jCambiarA9 = new javax.swing.JButton();
        jCambiarB9 = new javax.swing.JButton();
        jLabelA9 = new javax.swing.JTextField();
        jLabelB9 = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();

        jButton1.setText("jButton1");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("EPOKER");
        setBackground(new java.awt.Color(66, 147, 45));
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        setForeground(new java.awt.Color(66, 147, 45));
        setResizable(false);

        jPanel1.setBackground(new java.awt.Color(66, 147, 45));
        jPanel1.setForeground(new java.awt.Color(194, 57, 57));

        jPanelElegirCartas.setBackground(new java.awt.Color(66, 147, 45));
        jPanelElegirCartas.setForeground(new java.awt.Color(102, 255, 51));

        botonCalcular.setText("Calcular");
        botonCalcular.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonCalcularActionPerformed(evt);
            }
        });

        jListaCartas.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane1.setViewportView(jListaCartas);

        javax.swing.GroupLayout jPanelElegirCartasLayout = new javax.swing.GroupLayout(jPanelElegirCartas);
        jPanelElegirCartas.setLayout(jPanelElegirCartasLayout);
        jPanelElegirCartasLayout.setHorizontalGroup(
            jPanelElegirCartasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelElegirCartasLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelElegirCartasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(botonCalcular, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanelElegirCartasLayout.setVerticalGroup(
            jPanelElegirCartasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelElegirCartasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 372, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(botonCalcular, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jPanel6.setBackground(new java.awt.Color(66, 147, 45));

        jButton9.setText("cambiar");
        jButton9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton9MouseClicked(evt);
            }
        });
        jButton9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton9ActionPerformed(evt);
            }
        });

        jButton8.setText("cambiar");
        jButton8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton8MouseClicked(evt);
            }
        });
        jButton8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton8ActionPerformed(evt);
            }
        });

        jButton10.setText("cambiar");
        jButton10.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton10MouseClicked(evt);
            }
        });
        jButton10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton10ActionPerformed(evt);
            }
        });

        jListaFlop.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Aleatorio", "Aleatorio", "Aleatorio" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane6.setViewportView(jListaFlop);

        jButton11.setText("cambiar");
        jButton11.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton11MouseClicked(evt);
            }
        });
        jButton11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton11ActionPerformed(evt);
            }
        });

        jButton12.setText("cambiar");
        jButton12.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton12MouseClicked(evt);
            }
        });
        jButton12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton12ActionPerformed(evt);
            }
        });

        jListTurn.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Aletorio" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jListTurn.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jListTurnMouseClicked(evt);
            }
        });
        jScrollPane5.setViewportView(jListTurn);

        jListRiver.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Aletorio" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });

        jLabel30.setFont(new java.awt.Font("Dialog", 1, 10));
        jLabel30.setForeground(new java.awt.Color(204, 255, 204));
        jLabel30.setText("RIVER");

        jLabel29.setFont(new java.awt.Font("Dialog", 1, 10));
        jLabel29.setForeground(new java.awt.Color(204, 255, 204));
        jLabel29.setText("TURN");

        jLabel28.setFont(new java.awt.Font("Dialog", 1, 10));
        jLabel28.setForeground(new java.awt.Color(204, 255, 204));
        jLabel28.setText("FLOP");

        comboJugadores.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2", "3", "4", "5", "6", "7", "8", "9" }));

        jJugadores.setFont(new java.awt.Font("Dialog", 0, 10));
        jJugadores.setText("Jugadores");

        jPartidas.setFont(new java.awt.Font("Dialog", 0, 10));
        jPartidas.setText("Partidas");

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton10, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButton11)
                            .addComponent(jButton12))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jListRiver, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 129, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel30)
                            .addComponent(jLabel29))
                        .addGap(19, 19, 19)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jPartidas)
                            .addComponent(spinner, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jJugadores)
                            .addGroup(jPanel6Layout.createSequentialGroup()
                                .addGap(12, 12, 12)
                                .addComponent(comboJugadores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addComponent(jLabel28))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                .addGroup(jPanel6Layout.createSequentialGroup()
                    .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel6Layout.createSequentialGroup()
                    .addComponent(jLabel28)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(jPanel6Layout.createSequentialGroup()
                            .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jListRiver))))))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                .addContainerGap(24, Short.MAX_VALUE)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jJugadores)
                    .addComponent(jPartidas)
                    .addComponent(jLabel29))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(spinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(comboJugadores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel30))
                .addContainerGap())
        );

        jPanel11.setBackground(new java.awt.Color(66, 147, 45));
        jPanel11.setForeground(new java.awt.Color(173, 111, 111));

        bIdioma1.setText("Español");
        bIdioma1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bIdioma1ActionPerformed(evt);
            }
        });

        bIdioma2.setSelected(true);
        bIdioma2.setText("Inglés");
        bIdioma2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bIdioma2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(bIdioma2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(bIdioma1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(bIdioma1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(bIdioma2)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        caja1.setBackground(new java.awt.Color(66, 147, 45));

        jJugador1.setFont(new java.awt.Font("Tahoma", 1, 14));
        jJugador1.setText("Jugador 1");

        jCambiarA1.setText("jButton2");
        jCambiarA1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarA1ActionPerformed(evt);
            }
        });

        jCambiarB1.setText("jButton4");
        jCambiarB1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarB1ActionPerformed(evt);
            }
        });

        jLabelA1.setText("jTextField1");

        jLabelB1.setText("jTextField2");

        javax.swing.GroupLayout caja1Layout = new javax.swing.GroupLayout(caja1);
        caja1.setLayout(caja1Layout);
        caja1Layout.setHorizontalGroup(
            caja1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(caja1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jJugador1)
                    .addGroup(caja1Layout.createSequentialGroup()
                        .addComponent(jCambiarA1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelA1, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(caja1Layout.createSequentialGroup()
                        .addComponent(jCambiarB1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelB1, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE)))
                .addContainerGap())
        );
        caja1Layout.setVerticalGroup(
            caja1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jJugador1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(caja1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarA1)
                    .addComponent(jLabelA1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(caja1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarB1)
                    .addComponent(jLabelB1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        caja2.setBackground(new java.awt.Color(66, 147, 45));

        jJugador2.setFont(new java.awt.Font("Tahoma", 1, 14));
        jJugador2.setText("Jugador 2");

        jCambiarA2.setText("jButton2");
        jCambiarA2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarA2ActionPerformed(evt);
            }
        });

        jCambiarB2.setText("jButton4");
        jCambiarB2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarB2ActionPerformed(evt);
            }
        });

        jLabelA2.setText("jTextField1");

        jLabelB2.setText("jTextField2");

        javax.swing.GroupLayout caja2Layout = new javax.swing.GroupLayout(caja2);
        caja2.setLayout(caja2Layout);
        caja2Layout.setHorizontalGroup(
            caja2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(caja2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jJugador2)
                    .addGroup(caja2Layout.createSequentialGroup()
                        .addComponent(jCambiarA2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelA2, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(caja2Layout.createSequentialGroup()
                        .addComponent(jCambiarB2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelB2, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE)))
                .addContainerGap())
        );
        caja2Layout.setVerticalGroup(
            caja2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jJugador2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(caja2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarA2)
                    .addComponent(jLabelA2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(caja2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarB2)
                    .addComponent(jLabelB2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        caja3.setBackground(new java.awt.Color(66, 147, 45));

        jJugador3.setFont(new java.awt.Font("Tahoma", 1, 14));
        jJugador3.setText("Jugador 3");

        jCambiarA3.setText("jButton2");
        jCambiarA3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarA3ActionPerformed(evt);
            }
        });

        jCambiarB3.setText("jButton4");
        jCambiarB3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarB3ActionPerformed(evt);
            }
        });

        jLabelA3.setText("jTextField1");

        jLabelB3.setText("jTextField2");

        javax.swing.GroupLayout caja3Layout = new javax.swing.GroupLayout(caja3);
        caja3.setLayout(caja3Layout);
        caja3Layout.setHorizontalGroup(
            caja3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(caja3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jJugador3)
                    .addGroup(caja3Layout.createSequentialGroup()
                        .addComponent(jCambiarA3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelA3, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(caja3Layout.createSequentialGroup()
                        .addComponent(jCambiarB3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelB3, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE)))
                .addContainerGap())
        );
        caja3Layout.setVerticalGroup(
            caja3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jJugador3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(caja3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarA3)
                    .addComponent(jLabelA3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(caja3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarB3)
                    .addComponent(jLabelB3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        caja4.setBackground(new java.awt.Color(66, 147, 45));

        jJugador4.setFont(new java.awt.Font("Tahoma", 1, 14));
        jJugador4.setText("Jugador 3");

        jCambiarA4.setText("jButton2");
        jCambiarA4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarA4ActionPerformed(evt);
            }
        });

        jCambiarB4.setText("jButton4");
        jCambiarB4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarB4ActionPerformed(evt);
            }
        });

        jLabelA4.setText("jTextField1");

        jLabelB4.setText("jTextField2");

        javax.swing.GroupLayout caja4Layout = new javax.swing.GroupLayout(caja4);
        caja4.setLayout(caja4Layout);
        caja4Layout.setHorizontalGroup(
            caja4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(caja4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jJugador4)
                    .addGroup(caja4Layout.createSequentialGroup()
                        .addComponent(jCambiarA4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelA4, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(caja4Layout.createSequentialGroup()
                        .addComponent(jCambiarB4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelB4, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE)))
                .addContainerGap())
        );
        caja4Layout.setVerticalGroup(
            caja4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jJugador4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(caja4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarA4)
                    .addComponent(jLabelA4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(caja4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarB4)
                    .addComponent(jLabelB4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        caja5.setBackground(new java.awt.Color(66, 147, 45));

        jJugador5.setFont(new java.awt.Font("Tahoma", 1, 14));
        jJugador5.setText("Jugador 3");

        jCambiarA5.setText("jButton2");
        jCambiarA5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarA5ActionPerformed(evt);
            }
        });

        jCambiarB5.setText("jButton4");
        jCambiarB5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarB5ActionPerformed(evt);
            }
        });

        jLabelA5.setText("jTextField1");

        jLabelB5.setText("jTextField2");

        javax.swing.GroupLayout caja5Layout = new javax.swing.GroupLayout(caja5);
        caja5.setLayout(caja5Layout);
        caja5Layout.setHorizontalGroup(
            caja5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(caja5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jJugador5)
                    .addGroup(caja5Layout.createSequentialGroup()
                        .addComponent(jCambiarA5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelA5, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(caja5Layout.createSequentialGroup()
                        .addComponent(jCambiarB5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelB5, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE)))
                .addContainerGap())
        );
        caja5Layout.setVerticalGroup(
            caja5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja5Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jJugador5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(caja5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarA5)
                    .addComponent(jLabelA5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(caja5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarB5)
                    .addComponent(jLabelB5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        caja6.setBackground(new java.awt.Color(66, 147, 45));

        jJugador6.setFont(new java.awt.Font("Tahoma", 1, 14));
        jJugador6.setText("Jugador 3");

        jCambiarA6.setText("jButton2");
        jCambiarA6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarA6ActionPerformed(evt);
            }
        });

        jCambiarB6.setText("jButton4");
        jCambiarB6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarB6ActionPerformed(evt);
            }
        });

        jLabelA6.setText("jTextField1");

        jLabelB6.setText("jTextField2");

        javax.swing.GroupLayout caja6Layout = new javax.swing.GroupLayout(caja6);
        caja6.setLayout(caja6Layout);
        caja6Layout.setHorizontalGroup(
            caja6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(caja6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jJugador6)
                    .addGroup(caja6Layout.createSequentialGroup()
                        .addComponent(jCambiarA6)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelA6, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(caja6Layout.createSequentialGroup()
                        .addComponent(jCambiarB6)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelB6, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE)))
                .addContainerGap())
        );
        caja6Layout.setVerticalGroup(
            caja6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jJugador6)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(caja6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarA6)
                    .addComponent(jLabelA6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(caja6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarB6)
                    .addComponent(jLabelB6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        caja7.setBackground(new java.awt.Color(66, 147, 45));

        jJugador7.setFont(new java.awt.Font("Tahoma", 1, 14));
        jJugador7.setText("Jugador 3");

        jCambiarA7.setText("jButton2");
        jCambiarA7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarA7ActionPerformed(evt);
            }
        });

        jCambiarB7.setText("jButton4");
        jCambiarB7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarB7ActionPerformed(evt);
            }
        });

        jLabelA7.setText("jTextField1");

        jLabelB7.setText("jTextField2");

        javax.swing.GroupLayout caja7Layout = new javax.swing.GroupLayout(caja7);
        caja7.setLayout(caja7Layout);
        caja7Layout.setHorizontalGroup(
            caja7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(caja7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jJugador7)
                    .addGroup(caja7Layout.createSequentialGroup()
                        .addComponent(jCambiarA7)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelA7, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(caja7Layout.createSequentialGroup()
                        .addComponent(jCambiarB7)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelB7, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE)))
                .addContainerGap())
        );
        caja7Layout.setVerticalGroup(
            caja7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jJugador7)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(caja7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarA7)
                    .addComponent(jLabelA7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(caja7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarB7)
                    .addComponent(jLabelB7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        caja8.setBackground(new java.awt.Color(66, 147, 45));

        jJugador8.setFont(new java.awt.Font("Tahoma", 1, 14));
        jJugador8.setText("Jugador 3");

        jCambiarA8.setText("jButton2");
        jCambiarA8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarA8ActionPerformed(evt);
            }
        });

        jCambiarB8.setText("jButton4");
        jCambiarB8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarB8ActionPerformed(evt);
            }
        });

        jLabelA8.setText("jTextField1");

        jLabelB8.setText("jTextField2");

        javax.swing.GroupLayout caja8Layout = new javax.swing.GroupLayout(caja8);
        caja8.setLayout(caja8Layout);
        caja8Layout.setHorizontalGroup(
            caja8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(caja8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jJugador8)
                    .addGroup(caja8Layout.createSequentialGroup()
                        .addComponent(jCambiarA8)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelA8, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(caja8Layout.createSequentialGroup()
                        .addComponent(jCambiarB8)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelB8, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE)))
                .addContainerGap())
        );
        caja8Layout.setVerticalGroup(
            caja8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jJugador8)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(caja8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarA8)
                    .addComponent(jLabelA8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(caja8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarB8)
                    .addComponent(jLabelB8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        caja9.setBackground(new java.awt.Color(66, 147, 45));

        jJugador9.setFont(new java.awt.Font("Tahoma", 1, 14));
        jJugador9.setText("Jugador 3");

        jCambiarA9.setText("jButton2");
        jCambiarA9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarA9ActionPerformed(evt);
            }
        });

        jCambiarB9.setText("jButton4");
        jCambiarB9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCambiarB9ActionPerformed(evt);
            }
        });

        jLabelA9.setText("jTextField1");

        jLabelB9.setText("jTextField2");

        javax.swing.GroupLayout caja9Layout = new javax.swing.GroupLayout(caja9);
        caja9.setLayout(caja9Layout);
        caja9Layout.setHorizontalGroup(
            caja9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(caja9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jJugador9)
                    .addGroup(caja9Layout.createSequentialGroup()
                        .addComponent(jCambiarA9)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelA9, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(caja9Layout.createSequentialGroup()
                        .addComponent(jCambiarB9)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelB9, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE)))
                .addContainerGap())
        );
        caja9Layout.setVerticalGroup(
            caja9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(caja9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jJugador9)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(caja9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarA9)
                    .addComponent(jLabelA9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(caja9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCambiarB9)
                    .addComponent(jLabelB9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/logo.JPG"))); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jPanelElegirCartas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(24, 24, 24)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(caja1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(caja2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(caja3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(caja4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(caja5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(caja6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(caja7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(caja8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(caja9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addComponent(jLabel2))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 22, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(caja2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(caja1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(caja3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(caja5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(caja4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(caja6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(caja9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(caja8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(caja7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(35, 35, 35))
                    .addComponent(jPanelElegirCartas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(42, 42, 42))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(238, 238, 238)
                .addComponent(jLabel1))
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel1))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    
    
    private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton9ActionPerformed
        // TODO add your handling code here:
        listaFlop[1] = listaCartas[jListaCartas.getSelectedIndex()];        
        jListaCartas.setListData(listaCartas);
        jListaFlop.setListData(listaFlop);
    }//GEN-LAST:event_jButton9ActionPerformed

    private void jButton9MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton9MouseClicked
        // TODO add your handling code here:

    }//GEN-LAST:event_jButton9MouseClicked

    private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed
        // TODO add your handling code here:
        listaFlop[0] = listaCartas[jListaCartas.getSelectedIndex()];        
        jListaCartas.setListData(listaCartas);
        jListaFlop.setListData(listaFlop);
    }//GEN-LAST:event_jButton8ActionPerformed

    private void jButton8MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton8MouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton8MouseClicked

    private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed
        // TODO add your handling code here:
        listaFlop[2] = listaCartas[jListaCartas.getSelectedIndex()];        
        jListaCartas.setListData(listaCartas);
        jListaFlop.setListData(listaFlop);
    }//GEN-LAST:event_jButton10ActionPerformed

    private void jButton10MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton10MouseClicked
        // TODO add your handling code here:

    }//GEN-LAST:event_jButton10MouseClicked

    private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed
        // TODO add your handling code here:
        listaTurn[0] = listaCartas[jListaCartas.getSelectedIndex()];        
        jListaCartas.setListData(listaCartas);
        jListTurn.setListData(listaTurn);
    }//GEN-LAST:event_jButton11ActionPerformed

    private void jButton11MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton11MouseClicked
        // TODO add your handling code here:

    }//GEN-LAST:event_jButton11MouseClicked

    private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton12ActionPerformed
        // TODO add your handling code here:
        listaRiver[0] = listaCartas[jListaCartas.getSelectedIndex()];        
        jListaCartas.setListData(listaCartas);
        jListRiver.setListData(listaRiver);
    }//GEN-LAST:event_jButton12ActionPerformed

    private void jButton12MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton12MouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton12MouseClicked

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jListTurnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jListTurnMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_jListTurnMouseClicked

    private void jCambiarA1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarA1ActionPerformed
        // TODO add your handling code here:
        this.jLabelA1.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarA1ActionPerformed

    private void jCambiarA2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarA2ActionPerformed
        // TODO add your handling code here:
            this.jLabelA2.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarA2ActionPerformed

    private void jCambiarB1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarB1ActionPerformed
        // TODO add your handling code here:
            this.jLabelB1.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarB1ActionPerformed

    private void jCambiarB2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarB2ActionPerformed
        // TODO add your handling code here:
            this.jLabelB2.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarB2ActionPerformed

    private void botonCalcularActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonCalcularActionPerformed
        // TODO add your handling code here:
        this.Calcular();
    }//GEN-LAST:event_botonCalcularActionPerformed

    private void jCambiarA3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarA3ActionPerformed
        // TODO add your handling code here:
         this.jLabelA3.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarA3ActionPerformed

    private void jCambiarB3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarB3ActionPerformed
        // TODO add your handling code here:
         this.jLabelB3.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarB3ActionPerformed

    private void jCambiarA4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarA4ActionPerformed
        // TODO add your handling code here:
         this.jLabelA4.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarA4ActionPerformed

    private void jCambiarB4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarB4ActionPerformed
        // TODO add your handling code here:
         this.jLabelB4.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarB4ActionPerformed

    private void jCambiarA5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarA5ActionPerformed
        // TODO add your handling code here:
         this.jLabelA5.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarA5ActionPerformed

    private void jCambiarB5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarB5ActionPerformed
        // TODO add your handling code here:
         this.jLabelB5.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarB5ActionPerformed

    private void jCambiarA6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarA6ActionPerformed
        // TODO add your handling code here:
         this.jLabelA6.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarA6ActionPerformed

    private void jCambiarB6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarB6ActionPerformed
        // TODO add your handling code here:
         this.jLabelB6.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarB6ActionPerformed

    private void jCambiarA7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarA7ActionPerformed
        // TODO add your handling code here:
         this.jLabelA7.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarA7ActionPerformed

    private void jCambiarB7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarB7ActionPerformed
        // TODO add your handling code here:
         this.jLabelB7.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarB7ActionPerformed

    private void jCambiarA8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarA8ActionPerformed
        // TODO add your handling code here:
         this.jLabelA8.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarA8ActionPerformed

    private void jCambiarB8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarB8ActionPerformed
        // TODO add your handling code here:
         this.jLabelB8.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarB8ActionPerformed

    private void jCambiarA9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarA9ActionPerformed
        // TODO add your handling code here:
         this.jLabelA9.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarA9ActionPerformed

    private void jCambiarB9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCambiarB9ActionPerformed
        // TODO add your handling code here:
         this.jLabelB9.setText(listaCartas[jListaCartas.getSelectedIndex()]);
    }//GEN-LAST:event_jCambiarB9ActionPerformed

    private void bIdioma1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bIdioma1ActionPerformed
        // TODO add your handling code here:
        this.toESP();
        this.bIdioma2.setSelected(false);
}//GEN-LAST:event_bIdioma1ActionPerformed

    private void bIdioma2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bIdioma2ActionPerformed
        // TODO add your handling code here:
        this.toENG();
        this.bIdioma1.setSelected(false);
    }//GEN-LAST:event_bIdioma2ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Pantalla2().setVisible(true);
            }
        });
    }
    
    // CALCULO
    public void Calcular(){
        
        BarajaFrancesa b = new BarajaFrancesa();
        JugadorPoker j1 = new JugadorPoker(1);
        JugadorPoker j2 = new JugadorPoker(2);
        JugadorPoker j3 = new JugadorPoker(3);
        JugadorPoker j4 = new JugadorPoker(4);
        JugadorPoker j5 = new JugadorPoker(5);
        JugadorPoker j6 = new JugadorPoker(6);
        JugadorPoker j7 = new JugadorPoker(7);
        JugadorPoker j8 = new JugadorPoker(8);
        JugadorPoker j9 = new JugadorPoker(9);
        
        SalidaEstandar s = new SalidaEstandar();

        
        
        // Tipo de manos obtenidas por cada jugador
        int[] valores1 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        int[] valores2 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        int[] valores3 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        int[] valores4 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        int[] valores5 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        int[] valores6 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        int[] valores7 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        int[] valores8 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        int[] valores9 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        
        // Cada tipo mano en las victorias de cada jugador
        int[] vvalores1 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        int[] vvalores2 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        int[] vvalores3 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        int[] vvalores4 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        int[] vvalores5 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        int[] vvalores6 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        int[] vvalores7 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        int[] vvalores8 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        int[] vvalores9 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        
        
        int[] victorias = {0,0,0,0,0,0,0,0,0,0,0};
        
        int partidas =(Integer) spinner.getValue();
        int jugadores = 0;
        if(Integer.parseInt((String)this.comboJugadores.getSelectedItem())== 3) jugadores = 3;
        if(Integer.parseInt((String)this.comboJugadores.getSelectedItem())== 4) jugadores = 4;
        if(Integer.parseInt((String)this.comboJugadores.getSelectedItem())== 5) jugadores = 5;
        if(Integer.parseInt((String)this.comboJugadores.getSelectedItem())== 6) jugadores = 6;
        if(Integer.parseInt((String)this.comboJugadores.getSelectedItem())== 7) jugadores = 7;
        if(Integer.parseInt((String)this.comboJugadores.getSelectedItem())== 8) jugadores = 8;
        if(Integer.parseInt((String)this.comboJugadores.getSelectedItem())== 9) jugadores = 9;
      
       
        // Empieza la emulación
       for (int i=1;i!=partidas+1;i++)
           {
            // Se restaura la baraja
            b.restaurarBaraja();
            
            Carta cartaA1 = null;
            Carta cartaB1 = null;
            Carta cartaA2 = null;
            Carta cartaB2 = null;
            Carta cartaA3 = null;
            Carta cartaB3 = null;
            Carta cartaA4 = null;
            Carta cartaB4 = null;
            Carta cartaA5 = null;
            Carta cartaB5 = null;
            Carta cartaA6 = null;
            Carta cartaB6 = null;
            Carta cartaA7 = null;
            Carta cartaB7 = null;
            Carta cartaA8 = null;
            Carta cartaB8 = null;
            Carta cartaA9 = null;
            Carta cartaB9 = null;
            
            // REPARTO CARTAS INDIVIDUALES
            if (!(jLabelA1.getText().contentEquals(langAleatorio)))
                cartaA1 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelA1.getText()),BarajaFrancesa.DevolverPalo(jLabelA1.getText()));
            if (!(jLabelB1.getText().contentEquals(langAleatorio)))
                cartaB1 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelB1.getText()),BarajaFrancesa.DevolverPalo(jLabelB1.getText()));
            if (!(jLabelA2.getText().contentEquals(langAleatorio)))
                cartaA2 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelA2.getText()),BarajaFrancesa.DevolverPalo(jLabelA2.getText()));
            if (!(jLabelB2.getText().contentEquals(langAleatorio)))
                cartaB2 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelB2.getText()),BarajaFrancesa.DevolverPalo(jLabelB2.getText()));
            if (jugadores > 2)
            {
                if (!(jLabelA3.getText().contentEquals(langAleatorio)))
                    cartaA3 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelA3.getText()),BarajaFrancesa.DevolverPalo(jLabelA3.getText()));
                if (!(jLabelB3.getText().contentEquals(langAleatorio)))
                    cartaB3 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelB3.getText()),BarajaFrancesa.DevolverPalo(jLabelB3.getText()));
                
            }
            if (jugadores > 3)
            {
                if (!(jLabelA4.getText().contentEquals(langAleatorio)))
                    cartaA4 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelA4.getText()),BarajaFrancesa.DevolverPalo(jLabelA4.getText()));
                if (!(jLabelB4.getText().contentEquals(langAleatorio)))
                    cartaB4 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelB4.getText()),BarajaFrancesa.DevolverPalo(jLabelB4.getText()));
                
            }
            if (jugadores > 4)
            {
                if (!(jLabelA5.getText().contentEquals(langAleatorio)))
                    cartaA5 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelA5.getText()),BarajaFrancesa.DevolverPalo(jLabelA5.getText()));
                if (!(jLabelB5.getText().contentEquals(langAleatorio)))
                    cartaB5 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelB5.getText()),BarajaFrancesa.DevolverPalo(jLabelB5.getText()));
                
            }           
            if (jugadores > 5)
            {
                if (!(jLabelA6.getText().contentEquals(langAleatorio)))
                    cartaA6 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelA6.getText()),BarajaFrancesa.DevolverPalo(jLabelA6.getText()));
                if (!(jLabelB6.getText().contentEquals(langAleatorio)))
                    cartaB6 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelB6.getText()),BarajaFrancesa.DevolverPalo(jLabelB6.getText()));
                
            }
            if (jugadores > 6)
            {
                if (!(jLabelA7.getText().contentEquals(langAleatorio)))
                    cartaA7 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelA7.getText()),BarajaFrancesa.DevolverPalo(jLabelA7.getText()));
                if (!(jLabelB7.getText().contentEquals(langAleatorio)))
                    cartaB7 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelB7.getText()),BarajaFrancesa.DevolverPalo(jLabelB7.getText()));
                
            }
            if (jugadores > 7)
            {
                if (!(jLabelA8.getText().contentEquals(langAleatorio)))
                    cartaA8 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelA8.getText()),BarajaFrancesa.DevolverPalo(jLabelA8.getText()));
                if (!(jLabelB8.getText().contentEquals(langAleatorio)))
                    cartaB8 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelB8.getText()),BarajaFrancesa.DevolverPalo(jLabelB8.getText()));
                
            }
            if (jugadores > 8)
            {
                if (!(jLabelA9.getText().contentEquals(langAleatorio)))
                    cartaA9 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelA9.getText()),BarajaFrancesa.DevolverPalo(jLabelA9.getText()));
                if (!(jLabelB9.getText().contentEquals(langAleatorio)))
                    cartaB9 = b.sacarCarta(BarajaFrancesa.DevolverValor(jLabelB9.getText()),BarajaFrancesa.DevolverPalo(jLabelB9.getText()));
                
            }

            
            // ASIGNAR CARTAS COMUNES
            Carta carta3 = new Carta(0,0);
            Carta carta4 = new Carta(0,0);
            Carta carta5 = new Carta(0,0);
            Carta carta6 = new Carta(0,0);
            Carta carta7 = new Carta(0,0);

            if (!(listaFlop[0].contentEquals(langAleatorio)))
                {
                     carta3 = b.sacarCarta(BarajaFrancesa.DevolverValor(listaFlop[0]),BarajaFrancesa.DevolverPalo(listaFlop[0]));  
                }
            if (!(listaFlop[1].contentEquals(langAleatorio)))
                {
                     carta4 = b.sacarCarta(BarajaFrancesa.DevolverValor(listaFlop[1]),BarajaFrancesa.DevolverPalo(listaFlop[1]));  
                }
            if (!(listaFlop[2].contentEquals(langAleatorio)))
                {
                     carta5 = b.sacarCarta(BarajaFrancesa.DevolverValor(listaFlop[2]),BarajaFrancesa.DevolverPalo(listaFlop[2]));  
                }
            if (!(listaTurn[0].contentEquals(langAleatorio)))
                {
                     carta6 = b.sacarCarta(BarajaFrancesa.DevolverValor(listaTurn[0]),BarajaFrancesa.DevolverPalo(listaTurn[0]));  
                }
            if (!(listaRiver[0].contentEquals(langAleatorio)))
                {
                     carta7 = b.sacarCarta(BarajaFrancesa.DevolverValor(listaRiver[0]),BarajaFrancesa.DevolverPalo(listaRiver[0]));  
                }
            // CARTAS ALEATORIAS
            if (jLabelA1.getText().contentEquals(langAleatorio))
                cartaA1 = b.sacarCarta();            
            if (jLabelB1.getText().contentEquals(langAleatorio))
                cartaB1 = b.sacarCarta();            
            if (jLabelA2.getText().contentEquals(langAleatorio))
                cartaA2 = b.sacarCarta();            
            if (jLabelB2.getText().contentEquals(langAleatorio))
                cartaB2 = b.sacarCarta();
            
            if (jugadores >= 3){
                if (jLabelA3.getText().contentEquals(langAleatorio))
                    cartaA3 = b.sacarCarta();            
                if (jLabelB3.getText().contentEquals(langAleatorio))
                    cartaB3 = b.sacarCarta(); 
            }
            if (jugadores >= 4){
                if (jLabelA4.getText().contentEquals(langAleatorio))
                    cartaA4 = b.sacarCarta();            
                if (jLabelB4.getText().contentEquals(langAleatorio))
                    cartaB4 = b.sacarCarta(); 
            }
            if (jugadores >= 5){
                if (jLabelA5.getText().contentEquals(langAleatorio))
                    cartaA5 = b.sacarCarta();            
                if (jLabelB5.getText().contentEquals(langAleatorio))
                    cartaB5 = b.sacarCarta(); 
            }
            if (jugadores >= 6){
                if (jLabelA6.getText().contentEquals(langAleatorio))
                    cartaA6 = b.sacarCarta();            
                if (jLabelB6.getText().contentEquals(langAleatorio))
                    cartaB6 = b.sacarCarta(); 
            }
            if (jugadores >= 7){
                if (jLabelA7.getText().contentEquals(langAleatorio))
                    cartaA7 = b.sacarCarta();            
                if (jLabelB7.getText().contentEquals(langAleatorio))
                    cartaB7 = b.sacarCarta(); 
            }
            if (jugadores >= 8){
                if (jLabelA8.getText().contentEquals(langAleatorio))
                    cartaA8 = b.sacarCarta();            
                if (jLabelB8.getText().contentEquals(langAleatorio))
                    cartaB8 = b.sacarCarta(); 
            }
            if (jugadores >= 9){
                if (jLabelA9.getText().contentEquals(langAleatorio))
                    cartaA9 = b.sacarCarta();            
                if (jLabelB9.getText().contentEquals(langAleatorio))
                    cartaB9 = b.sacarCarta(); 
            }
            
            if (listaFlop[0].contentEquals(langAleatorio))
                carta3 = b.sacarCarta();   
            if (listaFlop[1].contentEquals(langAleatorio))
                carta4 = b.sacarCarta();
            if (listaFlop[2].contentEquals(langAleatorio))
                 carta5 = b.sacarCarta();
            if (listaTurn[0].contentEquals(langAleatorio))
               carta6 = b.sacarCarta();
            if (listaRiver[0].contentEquals(langAleatorio))
               carta7 = b.sacarCarta();
                
            
            j1.asignarCartas(cartaA1,cartaB1);    
            j2.asignarCartas(cartaA2,cartaB2); 
            if (jugadores >= 3) j3.asignarCartas(cartaA3,cartaB3);
            if (jugadores >= 4) j4.asignarCartas(cartaA4,cartaB4);
            if (jugadores >= 5) j5.asignarCartas(cartaA5,cartaB5);
            if (jugadores >= 6) j6.asignarCartas(cartaA6,cartaB6);
            if (jugadores >= 7) j7.asignarCartas(cartaA7,cartaB7);
            if (jugadores >= 8) j8.asignarCartas(cartaA8,cartaB8);
            if (jugadores >= 9) j9.asignarCartas(cartaA9,cartaB9);
            
            j1.asignarFlop(carta3,carta4,carta5);
            j1.asignarTurn(carta6);
            j1.asignarRiver(carta7);
            j2.asignarFlop(carta3,carta4,carta5);
            j2.asignarTurn(carta6);
            j2.asignarRiver(carta7);
            if (jugadores >= 3){
                  j3.asignarFlop(carta3,carta4,carta5);
                  j3.asignarTurn(carta6);
                  j3.asignarRiver(carta7);
            }
            if (jugadores >= 4){
                  j4.asignarFlop(carta3,carta4,carta5);
                  j4.asignarTurn(carta6);
                  j4.asignarRiver(carta7);
            }            
            if (jugadores >= 5){
                  j5.asignarFlop(carta3,carta4,carta5);
                  j5.asignarTurn(carta6);
                  j5.asignarRiver(carta7);
            }
            if (jugadores >= 6){
                  j6.asignarFlop(carta3,carta4,carta5);
                  j6.asignarTurn(carta6);
                  j6.asignarRiver(carta7);
            }
            if (jugadores >= 7){
                  j7.asignarFlop(carta3,carta4,carta5);
                  j7.asignarTurn(carta6);
                  j7.asignarRiver(carta7);
            }
            if (jugadores >= 8){
                  j8.asignarFlop(carta3,carta4,carta5);
                  j8.asignarTurn(carta6);
                  j8.asignarRiver(carta7);
            }
            if (jugadores >= 9){
                  j9.asignarFlop(carta3,carta4,carta5);
                  j9.asignarTurn(carta6);
                  j9.asignarRiver(carta7);
            }
            
           j1.actualizarValorJugada();
           j2.actualizarValorJugada();
           j3.actualizarValorJugada();
           j4.actualizarValorJugada();
           j5.actualizarValorJugada();
           j6.actualizarValorJugada();
           j7.actualizarValorJugada();
           j8.actualizarValorJugada();
           j9.actualizarValorJugada();

           int gana = 0;
           if ((j1.jugada > j2.jugada) &&(j1.jugada > j3.jugada)
                &&(j1.jugada > j4.jugada) &&(j1.jugada > j5.jugada)
                &&(j1.jugada > j6.jugada) &&(j1.jugada > j7.jugada)
                &&(j1.jugada > j8.jugada) &&(j1.jugada > j9.jugada)) 
               gana = 1;
           
           if ((j2.jugada > j1.jugada) &&(j2.jugada > j3.jugada)
                &&(j2.jugada > j4.jugada) &&(j2.jugada > j5.jugada)
                &&(j2.jugada > j6.jugada) &&(j2.jugada > j7.jugada)
                &&(j2.jugada > j8.jugada) &&(j2.jugada > j9.jugada)) 
               gana = 2;
           
           if ((j3.jugada > j2.jugada) &&(j3.jugada > j1.jugada)
                &&(j3.jugada > j4.jugada) &&(j3.jugada > j5.jugada)
                &&(j3.jugada > j6.jugada) &&(j3.jugada > j7.jugada)
                &&(j3.jugada > j8.jugada) &&(j3.jugada > j9.jugada)) 
               gana = 3;
           
           if ((j4.jugada > j2.jugada) &&(j4.jugada > j3.jugada)
                &&(j4.jugada > j1.jugada) &&(j4.jugada > j5.jugada)
                &&(j4.jugada > j6.jugada) &&(j4.jugada > j7.jugada)
                &&(j4.jugada > j8.jugada) &&(j4.jugada > j9.jugada)) 
               gana = 4;
           
           if ((j5.jugada > j2.jugada) &&(j5.jugada > j3.jugada)
                &&(j5.jugada > j4.jugada) &&(j5.jugada > j1.jugada)
                &&(j5.jugada > j6.jugada) &&(j5.jugada > j7.jugada)
                &&(j5.jugada > j8.jugada) &&(j5.jugada > j9.jugada)) 
               gana = 5;
           
           if ((j6.jugada > j2.jugada) &&(j6.jugada > j3.jugada)
                &&(j6.jugada > j4.jugada) &&(j6.jugada > j5.jugada)
                &&(j6.jugada > j1.jugada) &&(j6.jugada > j7.jugada)
                &&(j6.jugada > j8.jugada) &&(j6.jugada > j9.jugada)) 
               gana = 6;

            if ((j7.jugada > j2.jugada) &&(j7.jugada > j3.jugada)
                &&(j7.jugada > j4.jugada) &&(j7.jugada > j5.jugada)
                &&(j7.jugada > j6.jugada) &&(j7.jugada > j1.jugada)
                &&(j7.jugada > j8.jugada) &&(j7.jugada > j9.jugada)) 
               gana = 7;
           
           if ((j8.jugada > j2.jugada) &&(j8.jugada > j3.jugada)
                &&(j8.jugada > j4.jugada) &&(j8.jugada > j5.jugada)
                &&(j8.jugada > j6.jugada) &&(j8.jugada > j7.jugada)
                &&(j8.jugada > j1.jugada) &&(j8.jugada > j9.jugada)) 
               gana = 8;
           
           if ((j9.jugada > j2.jugada) &&(j9.jugada > j3.jugada)
                &&(j9.jugada > j4.jugada) &&(j9.jugada > j5.jugada)
                &&(j9.jugada > j6.jugada)&&(j9.jugada > j7.jugada)
                &&(j9.jugada > j1.jugada)&&(j9.jugada > j8.jugada))
               gana = 9;
            

           if (gana == 0)
           {
                if ((j1.valorJugador.toInt() > j2.valorJugador.toInt()) && (j1.valorJugador.toInt() > j3.valorJugador.toInt()) &&
                        (j1.valorJugador.toInt() > j4.valorJugador.toInt()) && (j1.valorJugador.toInt() > j5.valorJugador.toInt()) &&
                        (j1.valorJugador.toInt() > j6.valorJugador.toInt()) && (j1.valorJugador.toInt() > j7.valorJugador.toInt()) &&
                        (j1.valorJugador.toInt() > j8.valorJugador.toInt()) && (j1.valorJugador.toInt() > j9.valorJugador.toInt()))
                        gana = 1;
                
                if ((j2.valorJugador.toInt() > j1.valorJugador.toInt()) && (j2.valorJugador.toInt() > j3.valorJugador.toInt()) &&
                        (j2.valorJugador.toInt() > j4.valorJugador.toInt()) && (j2.valorJugador.toInt() > j5.valorJugador.toInt()) &&
                        (j2.valorJugador.toInt() > j6.valorJugador.toInt()) && (j2.valorJugador.toInt() > j7.valorJugador.toInt()) &&
                        (j2.valorJugador.toInt() > j8.valorJugador.toInt()) && (j2.valorJugador.toInt() > j9.valorJugador.toInt()))
                        gana = 2;
                
                if ((j3.valorJugador.toInt() > j2.valorJugador.toInt()) && (j3.valorJugador.toInt() > j1.valorJugador.toInt()) &&
                        (j3.valorJugador.toInt() > j4.valorJugador.toInt()) && (j3.valorJugador.toInt() > j5.valorJugador.toInt()) &&
                        (j3.valorJugador.toInt() > j6.valorJugador.toInt()) && (j3.valorJugador.toInt() > j7.valorJugador.toInt()) &&
                        (j3.valorJugador.toInt() > j8.valorJugador.toInt()) && (j3.valorJugador.toInt() > j9.valorJugador.toInt()))
                        gana = 3;
                
                if ((j4.valorJugador.toInt() > j2.valorJugador.toInt()) && (j4.valorJugador.toInt() > j3.valorJugador.toInt()) &&
                        (j4.valorJugador.toInt() > j1.valorJugador.toInt()) && (j4.valorJugador.toInt() > j5.valorJugador.toInt()) &&
                        (j4.valorJugador.toInt() > j6.valorJugador.toInt()) && (j4.valorJugador.toInt() > j7.valorJugador.toInt()) &&
                        (j4.valorJugador.toInt() > j8.valorJugador.toInt()) && (j4.valorJugador.toInt() > j9.valorJugador.toInt()))
                        gana = 4;
                
                if ((j5.valorJugador.toInt() > j2.valorJugador.toInt()) && (j5.valorJugador.toInt() > j3.valorJugador.toInt()) &&
                        (j5.valorJugador.toInt() > j4.valorJugador.toInt()) && (j5.valorJugador.toInt() > j1.valorJugador.toInt()) &&
                        (j5.valorJugador.toInt() > j6.valorJugador.toInt()) && (j5.valorJugador.toInt() > j7.valorJugador.toInt()) &&
                        (j5.valorJugador.toInt() > j8.valorJugador.toInt()) && (j5.valorJugador.toInt() > j9.valorJugador.toInt()))
                        gana = 5;
                
                if ((j6.valorJugador.toInt() > j2.valorJugador.toInt()) && (j6.valorJugador.toInt() > j3.valorJugador.toInt()) &&
                        (j6.valorJugador.toInt() > j4.valorJugador.toInt()) && (j6.valorJugador.toInt() > j5.valorJugador.toInt()) &&
                        (j6.valorJugador.toInt() > j1.valorJugador.toInt()) && (j6.valorJugador.toInt() > j7.valorJugador.toInt()) &&
                        (j6.valorJugador.toInt() > j8.valorJugador.toInt()) && (j6.valorJugador.toInt() > j9.valorJugador.toInt()))
                        gana = 6;

                if ((j7.valorJugador.toInt() > j2.valorJugador.toInt()) && (j7.valorJugador.toInt() > j3.valorJugador.toInt()) &&
                        (j7.valorJugador.toInt() > j4.valorJugador.toInt()) && (j7.valorJugador.toInt() > j5.valorJugador.toInt()) &&
                        (j7.valorJugador.toInt() > j1.valorJugador.toInt()) && (j7.valorJugador.toInt() > j6.valorJugador.toInt()) &&
                        (j7.valorJugador.toInt() > j8.valorJugador.toInt()) && (j7.valorJugador.toInt() > j9.valorJugador.toInt()))
                        gana = 7;
                
                if ((j8.valorJugador.toInt() > j2.valorJugador.toInt()) && (j8.valorJugador.toInt() > j3.valorJugador.toInt()) &&
                        (j8.valorJugador.toInt() > j4.valorJugador.toInt()) && (j8.valorJugador.toInt() > j5.valorJugador.toInt()) &&
                        (j8.valorJugador.toInt() > j1.valorJugador.toInt()) && (j8.valorJugador.toInt() > j7.valorJugador.toInt()) &&
                        (j8.valorJugador.toInt() > j6.valorJugador.toInt()) && (j8.valorJugador.toInt() > j9.valorJugador.toInt()))
                        gana = 8;
                
                if ((j9.valorJugador.toInt() > j2.valorJugador.toInt()) && (j9.valorJugador.toInt() > j3.valorJugador.toInt()) &&
                        (j9.valorJugador.toInt() > j4.valorJugador.toInt()) && (j9.valorJugador.toInt() > j5.valorJugador.toInt()) &&
                        (j9.valorJugador.toInt() > j1.valorJugador.toInt()) && (j9.valorJugador.toInt() > j7.valorJugador.toInt()) &&
                        (j9.valorJugador.toInt() > j8.valorJugador.toInt()) && (j9.valorJugador.toInt() > j6.valorJugador.toInt()))
                        gana = 9;
                
           
           }
                      // ESTO TARDA MUCHO EN COMPROBAR, asi que hay que intentar no entrar en este IF.
           
           if (gana == 0)
           {
               ArrayList <JugadorPoker> ca  = new ArrayList();
               ca.add(j1);
               ca.add(j2);
               if (jugadores >= 3)  ca.add(j3);
               if (jugadores >= 4)  ca.add(j4);
               if (jugadores >= 5)  ca.add(j5);
               if (jugadores >= 6)  ca.add(j6);
               if (jugadores >= 7)  ca.add(j7);
               if (jugadores >= 8)  ca.add(j8);
               if (jugadores >= 9)  ca.add(j9);
               Collections.sort(ca, new JugadorPoker(1));
               if (!(ca.get(0).obtenerValor().iguales(ca.get(1).obtenerValor())))
               {
                   if (ca.get(0) == j1) gana = 1;
                   if (ca.get(0) == j2) gana = 2;
                   if (ca.get(0) == j3) gana = 3;
                   if (ca.get(0) == j4) gana = 4;
                   if (ca.get(0) == j5) gana = 5;
                   if (ca.get(0) == j6) gana = 6;
                   if (ca.get(0) == j7) gana = 7;
                   if (ca.get(0) == j8) gana = 8;
                   if (ca.get(0) == j9) gana = 9;
               }
           }
           

           
          // CONTADORES
          if(gana==1) vvalores1[j1.jugada]++;
          if(gana==2) vvalores2[j2.jugada]++;
          if(gana==3) vvalores3[j3.jugada]++;
          if(gana==4) vvalores4[j4.jugada]++;
          if(gana==5) vvalores5[j5.jugada]++;
          if(gana==6) vvalores6[j6.jugada]++;
          if(gana==7) vvalores7[j7.jugada]++;
          if(gana==8) vvalores8[j8.jugada]++;
          if(gana==9) vvalores9[j9.jugada]++;
           
          valores1[j1.jugada]++;
          valores2[j2.jugada]++;
          valores3[j3.jugada]++;
          valores4[j4.jugada]++;
          valores5[j5.jugada]++;
          valores6[j6.jugada]++;
          valores7[j7.jugada]++;
          valores8[j8.jugada]++;
          valores9[j9.jugada]++;
          victorias[gana]++;
        }
        
        
        // INFORME GENERAL
        
        // 
     
        String texto = "";
        texto += "\n" + "EPOKER";
        texto += "\n" + langCartas + " "+langJugador + 1;
        texto += "\n" + this.jLabelA1.getText();
        texto += "\n" + this.jLabelB1.getText();
        texto += "\n";
        
        texto += "\n" + langCartas + " "+langJugador + 2;
        texto += "\n" + this.jLabelA2.getText();
        texto += "\n" + this.jLabelB2.getText();
        texto += "\n";

        if (jugadores >= 3)
        {
            texto += "\n" + langCartas + " "+langJugador + 3;
            texto += "\n" + this.jLabelA3.getText();
            texto += "\n" + this.jLabelB3.getText();
            texto += "\n";
        }        
        
        if (jugadores >= 4)
        {
            texto += "\n" + langCartas + " "+langJugador + 4;
            texto += "\n" + this.jLabelA4.getText();
            texto += "\n" + this.jLabelB4.getText();
            texto += "\n";
        }
        
        if (jugadores >= 5)
        {
            texto += "\n" + langCartas + " "+langJugador + 5;
            texto += "\n" + this.jLabelA5.getText();
            texto += "\n" + this.jLabelB5.getText();
            texto += "\n";
        }
        
        if (jugadores >= 6)
        {
            texto += "\n" + langCartas + " "+langJugador + 6;
            texto += "\n" + this.jLabelA6.getText();
            texto += "\n" + this.jLabelB6.getText();
            texto += "\n";
        }
        
        if (jugadores >= 7)
        {
            texto += "\n" + langCartas + " "+langJugador + 7;
            texto += "\n" + this.jLabelA7.getText();
            texto += "\n" + this.jLabelB7.getText();
            texto += "\n";
        }
        
        if (jugadores >= 8)
        {
            texto += "\n" + langCartas + " "+langJugador + 8;
            texto += "\n" + this.jLabelA8.getText();
            texto += "\n" + this.jLabelB8.getText();
            texto += "\n";
        }
        
        if (jugadores >= 9)
        {
            texto += "\n" + langCartas + " "+langJugador + 9;
            texto += "\n" + this.jLabelA9.getText();
            texto += "\n" + this.jLabelB9.getText();
            texto += "\n";
        }
        
        texto += "\n";
        texto += "\n" + this.langVictorias + " "+this.langJugador +"1 :"+victorias[1]; 
        texto += "\n" + this.langVictorias + " "+this.langJugador +"2 :"+victorias[2];
        if (jugadores >= 3) texto += "\n" + this.langVictorias + " "+this.langJugador +"3 :"+victorias[3]; 
        if (jugadores >= 4) texto += "\n" + this.langVictorias + " "+this.langJugador +"4 :"+victorias[4];
        if (jugadores >= 5) texto += "\n" + this.langVictorias + " "+this.langJugador +"5 :"+victorias[5]; 
        if (jugadores >= 6) texto += "\n" + this.langVictorias + " "+this.langJugador +"6 :"+victorias[6];
        if (jugadores >= 7) texto += "\n" + this.langVictorias + " "+this.langJugador +"7 :"+victorias[7]; 
        if (jugadores >= 8) texto += "\n" + this.langVictorias + " "+this.langJugador +"8 :"+victorias[8]; 
        if (jugadores >= 9) texto += "\n" + this.langVictorias + " "+this.langJugador +"9 :"+victorias[9];
        
        // INFORME JUGADOR 1
        texto += "\n" ;
        texto += "\n" + this.langJugador + " " + "1";
        texto += "\n" + this.langParejas + ": "  +  valores1[2] + "(" + vvalores1[2] +")";
        texto += "\n" + this.langDParejas + ": " +  valores1[4]+ "(" + vvalores1[4] +")";
        texto += "\n" + this.langTrios + ": " +     valores1[6]+ "(" + vvalores1[6] +")";
        texto += "\n" + this.langEscaleras + ": " + valores1[8]+ "(" + vvalores1[8] +")";
        texto += "\n" + this.langColor + ": " +     valores1[10]+ "(" + vvalores1[10] +")";
        texto += "\n" + this.langFull + ": " +      valores1[12]+ "(" + vvalores1[12] +")";
        texto += "\n" + this.langPoker + ": " +     valores1[14]+ "(" + vvalores1[14] +")";
        texto += "\n" + this.langEColor  + ": "  +  valores1[16]+ "(" + vvalores1[16] +")";
        
         // INFORME JUGADOR 2
        texto += "\n" ;
        texto += "\n" + this.langJugador + " " + "2";
        texto += "\n" + this.langParejas + ": "  +  valores2[2]+ "(" + vvalores2[2] +")";
        texto += "\n" + this.langDParejas + ": " +  valores2[4]+ "(" + vvalores2[4] +")";
        texto += "\n" + this.langTrios + ": " +     valores2[6]+ "(" + vvalores2[6] +")";
        texto += "\n" + this.langEscaleras + ": " + valores2[8]+ "(" + vvalores2[8] +")";
        texto += "\n" + this.langColor + ": " +     valores2[10]+ "(" + vvalores2[10] +")";
        texto += "\n" + this.langFull + ": " +      valores2[12]+ "(" + vvalores2[12] +")";
        texto += "\n" + this.langPoker + ": " +     valores2[14]+ "(" + vvalores2[14] +")";
        texto += "\n" + this.langEColor  + ": "  +  valores2[16]+ "(" + vvalores2[16] +")";
        
        if (jugadores >= 3){
            texto += "\n" ;
            texto += "\n" + this.langJugador + " " + "3";
            texto += "\n" + this.langParejas + ": "  +  valores3[2]+ "(" + vvalores3[2] +")";
            texto += "\n" + this.langDParejas + ": " +  valores3[4]+ "(" + vvalores3[4] +")";
            texto += "\n" + this.langTrios + ": " +     valores3[6]+ "(" + vvalores3[6] +")";
            texto += "\n" + this.langEscaleras + ": " + valores3[8]+ "(" + vvalores3[8] +")";
            texto += "\n" + this.langColor + ": " +     valores3[10]+ "(" + vvalores3[10] +")";
            texto += "\n" + this.langFull + ": " +      valores3[12]+ "(" + vvalores3[12] +")";
            texto += "\n" + this.langPoker + ": " +     valores3[14]+ "(" + vvalores3[14] +")";
            texto += "\n" + this.langEColor  + ": "  +  valores3[16]+ "(" + vvalores3[16] +")";
         }
        
        if (jugadores >= 4){
            texto += "\n" ;
            texto += "\n" + this.langJugador + " " + "4";
            texto += "\n" + this.langParejas + ": "  +  valores4[2]+ "(" + vvalores4[2] +")";
            texto += "\n" + this.langDParejas + ": " +  valores4[4]+ "(" + vvalores4[4] +")";
            texto += "\n" + this.langTrios + ": " +     valores4[6]+ "(" + vvalores4[6] +")";
            texto += "\n" + this.langEscaleras + ": " + valores4[8]+ "(" + vvalores4[8] +")";
            texto += "\n" + this.langColor + ": " +     valores4[10]+ "(" + vvalores4[10] +")";
            texto += "\n" + this.langFull + ": " +      valores4[12]+ "(" + vvalores4[12] +")";
            texto += "\n" + this.langPoker + ": " +     valores4[14]+ "(" + vvalores4[14] +")";
            texto += "\n" + this.langEColor  + ": "  +  valores4[16]+ "(" + vvalores4[16] +")";}
        
        if (jugadores >= 5){
            texto += "\n" ;
            texto += "\n" + this.langJugador + " " + "5";
            texto += "\n" + this.langParejas + ": "  +  valores5[2]+ "(" + vvalores5[2] +")";
            texto += "\n" + this.langDParejas + ": " +  valores5[4]+ "(" + vvalores5[4] +")";
            texto += "\n" + this.langTrios + ": " +     valores5[6]+ "(" + vvalores5[6] +")";
            texto += "\n" + this.langEscaleras + ": " + valores5[8]+ "(" + vvalores5[8] +")";
            texto += "\n" + this.langColor + ": " +     valores5[10]+ "(" + vvalores5[10] +")";
            texto += "\n" + this.langFull + ": " +      valores5[12]+ "(" + vvalores5[12] +")";
            texto += "\n" + this.langPoker + ": " +     valores5[14]+ "(" + vvalores5[14] +")";
            texto += "\n" + this.langEColor  + ": "  +  valores5[16]+ "(" + vvalores5[16] +")";
         }
        
        if (jugadores >= 6){
            texto += "\n" ;
            texto += "\n" + this.langJugador + " " + "6";
            texto += "\n" + this.langParejas + ": "  +  valores6[2]+ "(" + vvalores6[2] +")";
            texto += "\n" + this.langDParejas + ": " +  valores6[4]+ "(" + vvalores6[4] +")";
            texto += "\n" + this.langTrios + ": " +     valores6[6]+ "(" + vvalores6[6] +")";
            texto += "\n" + this.langEscaleras + ": " + valores6[8]+ "(" + vvalores6[8] +")";
            texto += "\n" + this.langColor + ": " +     valores6[10]+ "(" + vvalores6[10] +")";
            texto += "\n" + this.langFull + ": " +      valores6[12]+ "(" + vvalores6[12] +")";
            texto += "\n" + this.langPoker + ": " +     valores6[14]+ "(" + vvalores6[14] +")";
            texto += "\n" + this.langEColor  + ": "  +  valores6[16]+ "(" + vvalores6[16] +")";
        }
        
        if (jugadores >= 7){
            texto += "\n" ;
            texto += "\n" + this.langJugador + " " + "7";
            texto += "\n" + this.langParejas + ": "  +  valores7[2]+ "(" + vvalores7[2] +")";
            texto += "\n" + this.langDParejas + ": " +  valores7[4]+ "(" + vvalores7[4] +")";
            texto += "\n" + this.langTrios + ": " +     valores7[6]+ "(" + vvalores7[6] +")";
            texto += "\n" + this.langEscaleras + ": " + valores7[8]+ "(" + vvalores7[8] +")";
            texto += "\n" + this.langColor + ": " +     valores7[10]+ "(" + vvalores7[10] +")";
            texto += "\n" + this.langFull + ": " +      valores7[12]+ "(" + vvalores7[12] +")";
            texto += "\n" + this.langPoker + ": " +     valores7[14]+ "(" + vvalores7[14] +")";
            texto += "\n" + this.langEColor  + ": "  +  valores7[16]+ "(" + vvalores7[16] +")";
        }
        
        if (jugadores >= 8){
            texto += "\n" ;
            texto += "\n" + this.langJugador + " " + "8";
            texto += "\n" + this.langParejas + ": "  +  valores8[2]+ "(" + vvalores8[2] +")";
            texto += "\n" + this.langDParejas + ": " +  valores8[4]+ "(" + vvalores8[4] +")";
            texto += "\n" + this.langTrios + ": " +     valores8[6]+ "(" + vvalores8[6] +")";
            texto += "\n" + this.langEscaleras + ": " + valores8[8]+ "(" + vvalores8[8] +")";
            texto += "\n" + this.langColor + ": " +     valores8[10]+ "(" + vvalores8[10] +")";
            texto += "\n" + this.langFull + ": " +      valores8[12]+ "(" + vvalores8[12] +")";
            texto += "\n" + this.langPoker + ": " +     valores8[14]+ "(" + vvalores8[14] +")";
            texto += "\n" + this.langEColor  + ": "  +  valores8[16]+ "(" + vvalores8[16] +")";}
        
        if (jugadores >= 9){
            texto += "\n" ;
            texto += "\n" + this.langJugador + " " + "9";
            texto += "\n" + this.langParejas + ": "  +  valores9[2]+ "(" + vvalores9[2] +")";
            texto += "\n" + this.langDParejas + ": " +  valores9[4]+ "(" + vvalores9[4] +")";
            texto += "\n" + this.langTrios + ": " +     valores9[6]+ "(" + vvalores9[6] +")";
            texto += "\n" + this.langEscaleras + ": " + valores9[8]+ "(" + vvalores9[8] +")";
            texto += "\n" + this.langColor + ": " +     valores9[10]+ "(" + vvalores9[10] +")";
            texto += "\n" + this.langFull + ": " +      valores9[12]+ "(" + vvalores9[12] +")";
            texto += "\n" + this.langPoker + ": " +     valores9[14]+ "(" + vvalores9[14] +")";
            texto += "\n" + this.langEColor  + ": "  +  valores9[16]+ "(" + vvalores9[16] +")";}
        
        
        Informe informe = new Informe();
        informe.escribir(texto);
        informe.show();
        //System.out.println(valores1[10]);
    }
    
    public void mostrar(int npantallas){
        if (npantallas==2){
            //caja3.setVisible(false);
        }
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JToggleButton bIdioma1;
    private javax.swing.JToggleButton bIdioma2;
    private javax.swing.JButton botonCalcular;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JPanel caja1;
    private javax.swing.JPanel caja2;
    private javax.swing.JPanel caja3;
    private javax.swing.JPanel caja4;
    private javax.swing.JPanel caja5;
    private javax.swing.JPanel caja6;
    private javax.swing.JPanel caja7;
    private javax.swing.JPanel caja8;
    private javax.swing.JPanel caja9;
    private javax.swing.JComboBox comboJugadores;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton12;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JButton jCambiarA1;
    private javax.swing.JButton jCambiarA2;
    private javax.swing.JButton jCambiarA3;
    private javax.swing.JButton jCambiarA4;
    private javax.swing.JButton jCambiarA5;
    private javax.swing.JButton jCambiarA6;
    private javax.swing.JButton jCambiarA7;
    private javax.swing.JButton jCambiarA8;
    private javax.swing.JButton jCambiarA9;
    private javax.swing.JButton jCambiarB1;
    private javax.swing.JButton jCambiarB2;
    private javax.swing.JButton jCambiarB3;
    private javax.swing.JButton jCambiarB4;
    private javax.swing.JButton jCambiarB5;
    private javax.swing.JButton jCambiarB6;
    private javax.swing.JButton jCambiarB7;
    private javax.swing.JButton jCambiarB8;
    private javax.swing.JButton jCambiarB9;
    private javax.swing.JLabel jJugador1;
    private javax.swing.JLabel jJugador2;
    private javax.swing.JLabel jJugador3;
    private javax.swing.JLabel jJugador4;
    private javax.swing.JLabel jJugador5;
    private javax.swing.JLabel jJugador6;
    private javax.swing.JLabel jJugador7;
    private javax.swing.JLabel jJugador8;
    private javax.swing.JLabel jJugador9;
    private javax.swing.JLabel jJugadores;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JTextField jLabelA1;
    private javax.swing.JTextField jLabelA2;
    private javax.swing.JTextField jLabelA3;
    private javax.swing.JTextField jLabelA4;
    private javax.swing.JTextField jLabelA5;
    private javax.swing.JTextField jLabelA6;
    private javax.swing.JTextField jLabelA7;
    private javax.swing.JTextField jLabelA8;
    private javax.swing.JTextField jLabelA9;
    private javax.swing.JTextField jLabelB1;
    private javax.swing.JTextField jLabelB2;
    private javax.swing.JTextField jLabelB3;
    private javax.swing.JTextField jLabelB4;
    private javax.swing.JTextField jLabelB5;
    private javax.swing.JTextField jLabelB6;
    private javax.swing.JTextField jLabelB7;
    private javax.swing.JTextField jLabelB8;
    private javax.swing.JTextField jLabelB9;
    private javax.swing.JList jListRiver;
    private javax.swing.JList jListTurn;
    private javax.swing.JList jListaCartas;
    private javax.swing.JList jListaFlop;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanelElegirCartas;
    private javax.swing.JLabel jPartidas;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JSpinner spinner;
    // End of variables declaration//GEN-END:variables
    
}
